<template>
    <!--    <div class="app-container">-->
    <iframe
            id="swaggerIframe"
            :src="url"
            class="iframe_container"
            scrolling="auto"
    ></iframe>
    <!--    </div>-->
</template>

<script>
    import NProgress from 'nprogress'
    import baseURL from "../../utils/baseURLConfig";

    export default {
        name: "druid",
        data() {
            return {
                url: baseURL + '/druid/index.html'
            }
        },
        mounted() {
            var swagger = document.getElementById("swaggerIframe");
            NProgress.start();
            swagger.onload = function () {
                NProgress.done();
            }
        }
    }
</script>

<style scoped>
    .iframe_container {
        position: relative;
        width: 100%;
        min-height: 600px;
        padding-bottom: 16px;
    }

</style>
